<?php
html::printPath('orgSpace.personDisplay');
$msg->printMessages();

$fullName = $person['title'] . ' ' . $person['first_name'] . ' ' . $person['other_names'] . ' ' . $person['last_name'];

$fb = new FormBuilder('person', $person);
$fb->displayOnly();
$fb->display('full_name')->value($fullName)->identifyingValue();
$fb->text('yoga_name');
$fb->radioButtons('gender', array('M','F'), 'person.gender-');
// Organization should not get person's birth date, it's a personal data.
$fb->date('birth_date')->yearOnly()->labelKey('person.birth_year');;

$fb->delimiter();
$fb->text('street');
$fb->text('city');
$fb->text('postal_code');
$fb->display('country_code')->value($person['country_name']);

$fb->delimiter();
$fb->text('telephone');
$fb->text('email');

$fb->write();